package com.example.clsj.organization;

import lombok.Data;

@Data
public abstract class Employee {

    private String name;
    private int id;

    public Employee(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public void add(Employee employee) {
        throw new UnsupportedOperationException("This method is not supported here!");
    }

    public void remove(Employee employee) {
        throw new UnsupportedOperationException("This method is not supported here!");
    }

    public abstract void display(int depth);

    public abstract int countEmployees();

    public abstract double calculateTotalSalary();
}
